import request from '/@/utils/request';

// 查询问卷调查问题列表
export function listQuestion(query?: Object) {
  return request({
    url: '/module/survey/question/list',
    method: 'get',
    params: query
  })
}

// 查询问卷调查问题详细
export function getQuestion(id?: number) {
  return request({
    url: '/module/survey/question/' + id,
    method: 'get'
  })
}

// 新增问卷调查问题
export function addQuestion(data?: Object) {
  return request({
    url: '/module/survey/question',
    method: 'post',
    data: data
  })
}

// 修改问卷调查问题
export function updateQuestion(data?: Object) {
  return request({
    url: '/module/survey/question',
    method: 'put',
    data: data
  })
}

// 删除问卷调查问题
export function delQuestion(id?: number) {
  return request({
    url: '/module/survey/question/' + id,
    method: 'delete'
  })
}

// 导出问卷调查问题
export function exportQuestion(query?: Object) {
  return request({
    url: '/module/survey/question/export',
    method: 'get',
    params: query
  })
}
